<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>增加字段</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/layout.css"/> 
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/content.css"/>
    </head>
    <body>
        <div class="cbox col9 f_l">
        <form action='<{:U('editfield')}>' method="POST">
            <input type="hidden" name="id" value="<{$channel.id}>"/>
            <input type='hidden' name='fieldset[fieldname]' value='<{$field.fieldname}>'/>
            <div class="header"><h3>修改字段 </h3></div>
            <div class="content">
                <div class="innerbox">
                    <fieldset class="col9">
                        <label>模型ID：<{$channel.id}>   扩展表：<{$channel.addtable}> </label>
                    </fieldset>
                    <fieldset class='col5 f_l'>
                        <label>表单提示文字 itemname</label>
                        <input type='text' name="fieldset[itemname]" value="<{$field.itemname}>"/>
                        <p>发布内容时显示的提示文字</p>
                    </fieldset>
                    <fieldset class='col4 f_l'>
                        <label>字段名称 fieldname</label>
                        <div>禁止修改：<{$field.fieldname}></div>
                    </fieldset>
                    <div class='f_c'></div>
                    
                    <fieldset class="col4 f_l">
                        <label>是否分页</label>
                        <div>
                            <input type="radio" name='fieldset[needpage]' value="1" <if condition="$field.needpage eq true">checked</if>/>是 
                            <input type="radio" value="0" name='fieldset[needpage]' <if condition="$field.needpage eq false">checked</if>/>否
                        </div>
                    </fieldset>
                    <fieldset class="col4 f_l">
                        <label>分页标记</label>
                        <p class="helper">仅在开启分页时有效,内容将按此标记进行分页</p>
                        <input type="text" name='fieldset[pagemark]' value="<{$field.pagemark}>"/> 
                    </fieldset>
                    <div class='f_c'></div>
                </div>
            </div>
            <div class="footer">
                <div class="submit f_r">
                    一旦提交，不可更改
                    <input type="submit" value="Submit" class="subbtn"/>
                    <input type="reset" value="Reset"/>
                </div>
            </div>
        </form>
        </div>
        
    </body>
</html>
